package decorator;

public class Finery extends TestDecorator{
    protected TestDecorator component;

    public void Decorate(TestDecorator component){
        this.component = component;
    }

    @Override
    public void show() {
        if(component!=null){
            component.show();
        }
    }
}

class Tshirts extends Finery{
    @Override
    public void show() {
        super.show();
        System.out.println("t-shirts");
    }
}

class Bikini extends Finery{
    @Override
    public void show() {
        super.show();
        System.out.println("情趣内衣");
    }
}